# -*- coding: utf-8 -*-
"""
@Time ： 2022/12/30 17:34
@Author ： PJC
"""
import os
import configparser


def read_token(token):
    conf_path = os.path.abspath(os.path.dirname(os.path.dirname(__file__)) + r"/config/token.ini")
    config = configparser.ConfigParser()
    # config.read(conf_path, encoding='utf-8')
    config.read(conf_path, encoding="UTF-8")
    new_token = config.get("token", "{}".format(token))
    return new_token


if __name__ == '__main__':
    print(read_token('lisi_token'))
